import request from '@/utils/request'

// 查询地点二维码列表
export function listQr(query) {
  return request({
    url: '/module/event/point/qr/list',
    method: 'get',
    params: query
  })
}

export function listQrs(query) {
  return request({
    url: '/module/event/point/qr/lists',
    method: 'get',
    params: query
  })
}

// 查询地点二维码详细
export function getQr(id) {
  return request({
    url: '/module/event/point/qr/' + id,
    method: 'get'
  })
}

// 新增地点二维码
export function addQr(data) {
  return request({
    url: '/module/event/point/qr',
    method: 'post',
    data
  })
}

// 修改地点二维码
export function updateQr(data) {
  return request({
    url: '/module/event/point/qr',
    method: 'put',
    data
  })
}

// 删除地点二维码
export function delQr(id) {
  return request({
    url: '/module/event/point/qr/' + id,
    method: 'delete'
  })
}

// 导出地点二维码
export function exportQr(query) {
  return request({
    url: '/module/event/point/qr/export',
    method: 'get',
    params: query
  })
}



// 重置二维码
export function resetQrCode(data) {
  return request({
    url: '/module/event/point/qr/resetQrCode',
    method: 'post',
    data
  })
}
